function getFruitSuggestions(params,url) {
  return new Promise((resolve,reject)=>{
    wx.request({
      url: url,
      params:params,
      method:'GET',
      data:params,
      dataType:'json',
      success(res){
        console.log('-----------水果建议数据如下：')
        console.log(res)
        resolve(res.data.message)
      },
      fail(err){
        console.log(err)
      }
    })
  })
}


module.exports.getFruitSuggestions=getFruitSuggestions